package com.heima.feign.wemedia;

import com.heima.model.channel.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmchannelDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author rookie001
 * @creat 2023-06-20-9:48
 */
@FeignClient("leadnews-wemedia")
public interface IChannelClient {
    //频道名称模糊分页查询
    @PostMapping("/api/v1/channel/list")
    ResponseResult list(@RequestBody ChannelDto channelDto);
    //频道更改
    @PostMapping("/api/v1/channel/update")
    ResponseResult update(@RequestBody WmchannelDto dto);
    //频道新增
    @PostMapping("/api/v1/channel/save")
    ResponseResult save(@RequestBody WmchannelDto dto);
    //频道删除
    @GetMapping("/api/v1/channel/del/(id)")
    ResponseResult del(@RequestBody WmchannelDto dto);

}
